package com.cc.police.service;

import com.cc.police.entity.PUser;
import com.cc.police.service.ex.PasswordNotMatchException;
import com.cc.police.service.ex.UserNotFoundException;

public interface PUserService {


    PUser login(PUser pUser)throws UserNotFoundException, PasswordNotMatchException;

    void addUserToken(String token, Integer userId);

    /*设置页面 修改用户资料*/
    void updatePhotoAndName(String avatar, String username,Integer userId);

    /*用户密码修改*/
    void updetePassword(Object userId, String password, String newpassword);

    PUser selectAllById(Object userId);


    void updateUsername(String username, Integer userId);
}
